package com.kongyz.shape;

/**
 * @author kongyz
 * @date 2018/6/30 11:33
 * @Description: 图形外观类
 */
public class ShapeMaker {
    private Shape rectangle;
    private Shape square;
    private Shape circle;

    public ShapeMaker() {
        circle=new Circle();
        rectangle=new Rectangle();
        square =new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }

}
